import numpy as np

a =np.arange(2).reshape(1, 2)
b =np.arange(6).reshape(3, 2)

# 按行合并
c = np.append(a, b, axis=0)
print('按行合并后的结果',c)